﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DebugTools
{
    class ELoad_IT87:ELoad
    {
        public ELoad_IT87(string szInsID):base(szInsID)
        {
            _szType = "ITECH Ltd., IT87";
            //ITECH Ltd., IT8702, 800182052757820003, 1.47
        }

        public override double MeasChannelVolt(string Chan)
        {
            _szCmd = "CHAN " + Chan +";FETC:VOLT?\n";
            return base.MeasChannelVolt(Chan);
        }

        public override double MeasChannelCurr(string Chan)
        {
            _szCmd = "CHAN " + Chan + ";FETC:CURR?\n";
            return base.MeasChannelCurr(Chan);
        }

        public override double MeasChannelPower(string Chan)
        {
            _szCmd = "CHAN " + Chan + ";FETC:POW?\n";
            return base.MeasChannelPower(Chan);
        }

        public void SetChannelCurr(string chan, string curr)
        {
            _szCmd = "CHAN " + chan + ";CURR " + curr + "\n";
            this.Write(_szCmd);
            _szCmd = "INP ON\n";    //开启输出
            this.Write(_szCmd);
        }
    }
}
